home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13411 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  27 lines

  1. Newsgroups: comp.lang.c++,comp.lang.perl.misc
  2. Path: walter.cray.com!roehrich
  3. From: roehrich@cray.com (Dean Roehrich)
  4. Subject: Re: pattern matching in C++
  5. Message-ID: <1996Mar25.104516.17979@walter.cray.com>
  6. Nntp-Posting-Host: poplar501.cray.com
  7. Organization: Cray Research, Inc.
  8. References: <4j50ot$gn6@bobcat.csusm.edu>
  9. Date: 25 Mar 96 10:45:15 CST
  10.  
  11. In article <4j50ot$gn6@bobcat.csusm.edu>,
  12. Todd Federman <feder001@mailhost.csusm.edu> wrote:
  13. >   How do you do perl-type pattern matching in C++? I'm writing C++ classes 
  14. >for myself with methods that mimic perl functions, and I want to implement 
  15. >pattern matching. Do I have to start from scratch? 
  16.  
  17. A few years ago someone was creating C++ classes that do about the same
  18. thing.  I don't remember who it was or what the package was called, but I'm
  19. sure it can be found on some archive somewhere (but probably not on CPAN).
  20.  
  21. I think if I were in this situation I would just link libperl.a into my C++
  22. app and use the real thing.  Consult the perlembed and perlcall manpages in
  23. the Perl 5.002 distribution.
  24.  
  25. Dean
  26. roehrich@cray.com
  27.